<%@ page pageEncoding="utf-8"%>
<%@ page import="com.glodon.paas.document.service.util.DocumentConfig" %>
<%
request.setAttribute("accountURL", DocumentConfig.ACCOUNT_SERVER_URL);
request.setAttribute("documentURL", DocumentConfig.DOCUMENT_SERVER_URL);
request.setAttribute("databagURL", DocumentConfig.DATABAG_SERVER_URL);
request.setAttribute("totalSpace", DocumentConfig.DEFAULT_USE_SPACE);
%>
<script>
        /* var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
        (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
        g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
        s.parentNode.insertBefore(g,s)}(document,'script'));*/
        window._global = window._global || { contextPath : "${path}" };
    	window._global.documentURL = "${documentURL}";
    	window._global.accountURL = "${accountURL}";
    	window._global.databagURL = "${databagURL}";
    	window._global.quota = {
  			total: ${totalSpace},
  			used: ${usedSpace}
    	}
</script>
<script src="${path}/js/document.min.js?${mvngit.commit.abbrev}"></script>
